/********************************************************************************
* @file    main.h
* @author  jianqiang.xue
* @version V1.0.0
* @date    2021-04-09
* @brief   NULL
********************************************************************************/

#ifndef __MAIN_H
#define __MAIN_H

/* Includes ------------------------------------------------------------------*/
#include <stdint.h>
#include "bsp_flash.h"
#include "RTE_Components.h"
#include CMSIS_device_header
#include "cx32l003_hal.h"
/* Public Define -------------------------------------------------------------*/
#define DEBUG_MODE                    1

#define BOOT_STATE_RUN_APP            0
#define BOOT_STATE_IN_DFU             1
#define BOOT_STATE_MOVE_OTA_IN_APP    2

#define delay_ms                      HAL_Delay

extern boot_info_t g_boot_info;
/* Public Function Prototypes ------------------------------------------------*/

void goto_app(void);
void sys_jump_app(void);
#endif




